package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {
    @Value("${name}")
    String localname;
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String indexx() {
     return "hello ,how do you do!";
    }
    @RequestMapping(value = "/hellos",method = RequestMethod.GET)
    public String test(){
        return "xxxx";
    }

    @RequestMapping(value = "",method = RequestMethod.GET)
    public String index() {
        return "hello";
    }
}